package com.lrkj.property.domain;

import java.math.BigDecimal;
import com.lrkj.common.annotation.Excel;
import com.lrkj.common.core.domain.BaseEntity;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 车位管理对象 tm_carport
 *
 * @author yajun_ren
 * @date 2022-03-15
 */
@Data
public class Carport extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 车位id */
    private String carportId;

    /** 项目名称 */
    @Excel(name = "项目名称")
    private String communityId;

    /** 车场id */
    @Excel(name = "车场id")
    private String parkingId;

    /** 车位名称 */
    @Excel(name = "车位名称")
    private String carportName;

    /** 车位状态 */
    @Excel(name = "车位状态")
    private String carportState;

    /** 车位面积 */
    @Excel(name = "车位面积")
    private BigDecimal carportArea;

    /** 组织机构 */
    @Excel(name = "组织机构")
    private String deptId;

    /** 车位功能 */
    @Excel(name = "车位功能")
    private String carportFunction;

    /** 祖父ID */
    @Excel(name = "祖父ID")
    private String ancestors;

    /** 排序 */
    @Excel(name = "排序")
    private Integer orderNum;

    /** 车位编号 */
    @Excel(name = "车位编号")
    private String carportNum;

    //小区名称
    private String communityName;
    //车场名称
    private String parkingName;

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("carportId", getCarportId())
            .append("communityId", getCommunityId())
            .append("parkingId", getParkingId())
            .append("carportName", getCarportName())
            .append("carportState", getCarportState())
            .append("carportArea", getCarportArea())
            .append("deptId", getDeptId())
            .append("carportFunction", getCarportFunction())
            .append("ancestors", getAncestors())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("orderNum", getOrderNum())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
